package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 merchandise_info
 * 
 * @author lzp
 * @date 2025-01-01
 */
public class MerchandiseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编码 */
    private String merchandiseId;

    @Excel(name = "商品单价")
    private BigDecimal subtotal;

    /** 供货商编码 */
    @Excel(name = "供货商编码")
    private Long supplierId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String merchandiseName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String merchandiseDescription;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private String merchandiseCategory;

    /** 生产商 */
    @Excel(name = "生产商")
    private String manufacturer;

    /** 货源地 */
    @Excel(name = "货源地")
    private String sourceOfGoods;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 保质期 */
    @Excel(name = "保质期")
    private Long shelfLife;

    /** 温度要求 */
    @Excel(name = "温度要求")
    private BigDecimal temperatureRequirement;

    /** 商品追溯码 */
    @Excel(name = "商品追溯码")
    private String traceCode;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setMerchandiseId(String merchandiseId) 
    {
        this.merchandiseId = merchandiseId;
    }

    public String getMerchandiseId() 
    {
        return merchandiseId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setMerchandiseName(String merchandiseName) 
    {
        this.merchandiseName = merchandiseName;
    }

    public String getMerchandiseName() 
    {
        return merchandiseName;
    }
    public void setMerchandiseDescription(String merchandiseDescription) 
    {
        this.merchandiseDescription = merchandiseDescription;
    }

    public String getMerchandiseDescription() 
    {
        return merchandiseDescription;
    }
    public void setMerchandiseCategory(String merchandiseCategory) 
    {
        this.merchandiseCategory = merchandiseCategory;
    }

    public String getMerchandiseCategory() 
    {
        return merchandiseCategory;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setSourceOfGoods(String sourceOfGoods) 
    {
        this.sourceOfGoods = sourceOfGoods;
    }

    public String getSourceOfGoods() 
    {
        return sourceOfGoods;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setShelfLife(Long shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife() 
    {
        return shelfLife;
    }
    public void setTemperatureRequirement(BigDecimal temperatureRequirement) 
    {
        this.temperatureRequirement = temperatureRequirement;
    }

    public BigDecimal getTemperatureRequirement() 
    {
        return temperatureRequirement;
    }
    public void setTraceCode(String traceCode) 
    {
        this.traceCode = traceCode;
    }

    public String getTraceCode() 
    {
        return traceCode;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merchandiseId", getMerchandiseId())
            .append("supplierId", getSupplierId())
            .append("merchandiseName", getMerchandiseName())
            .append("merchandiseDescription", getMerchandiseDescription())
            .append("merchandiseCategory", getMerchandiseCategory())
            .append("manufacturer", getManufacturer())
            .append("sourceOfGoods", getSourceOfGoods())
            .append("productionDate", getProductionDate())
            .append("shelfLife", getShelfLife())
            .append("temperatureRequirement", getTemperatureRequirement())
            .append("traceCode", getTraceCode())
            .append("note", getNote())
            .toString();
    }

    public BigDecimal getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }
}
